<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Coupon_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-coupon_name" data-rule="required" class="form-control" name="row[coupon_name]" type="text" value="{$row.coupon_name|htmlentities}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Coupon_type')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--                        -->
<!--            <select  id="c-coupon_type" data-rule="required" class="form-control selectpicker" name="row[coupon_type]">-->
<!--                {foreach name="couponTypeList" item="vo"}-->
<!--                    <option value="{$key}" {in name="key" value="$row.coupon_type"}selected{/in}>{$vo}</option>-->
<!--                {/foreach}-->
<!--            </select>-->

<!--        </div>-->
<!--    </div>-->
    <div class="form-group reduce_price_part">
        <label class="control-label col-xs-12 col-sm-2">{:__('Reduce_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-reduce_price" data-rule="reduce_price" class="form-control" step="1" name="row[reduce_price]" type="number" value="{$row.reduce_price|htmlentities}">
        </div>
    </div>
<!--    <div class="form-group discount_part">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Discount')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-discount" data-rule="discount" class="form-control" name="row[discount]" type="number" value="{$row.discount|htmlentities}">-->
<!--            <span class="mf_backend_field_note">95代表9.5折，1代表0.1折</span>-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Min_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-min_price" data-rule="required" class="form-control" step="1" name="row[min_price]" type="number" value="{$row.min_price|htmlentities}">
            <span class="mf_backend_field_note">优惠券可使用的最低消费金额</span>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Expire_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-expire_type" data-rule="required" class="form-control selectpicker" name="row[expire_type]">
                {foreach name="expireTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.expire_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
            <span class="mf_backend_field_note">
                领取后生效表示有效期在领取到之后的X天有效<br />
                固定时间表示在指定的开始和结束期有效
            </span>

        </div>
    </div>
    <div class="form-group expire_day_part">
        <label class="control-label col-xs-12 col-sm-2">{:__('Expire_day')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-expire_day" data-rule="required(expire_day_need_required),expire_day" class="form-control" name="row[expire_day]" type="number" value="{$row.expire_day|htmlentities}">
        </div>
    </div>
    <div class="start_end_part">
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Start_time')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-start_time" data-rule="required(start_end_time_need_required)" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[start_time]" type="text" value="{$row.start_time}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('End_time')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-end_time" data-rule="required(start_end_time_need_required)" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[end_time]" type="text" value="{$row.end_time}">
            </div>
        </div>
    </div>
<!--    <div data-toggle="cxselect" data-selects="storelist,roomlist">-->
<!--        <div class="form-group">-->
<!--            <label class="control-label col-xs-12 col-sm-2">{:__('Store_id')}:</label>-->
<!--            <div class="col-xs-12 col-sm-8">-->
<!--                <select name="row[store_id]" id="c-store_id" data-rule="required"-->
<!--                        class="form-control storelist" data-url="store/ajaxgetstore">-->
<!--                    <option value="{$row.store_id|htmlentities}" selected=""></option>-->
<!--                </select>-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="form-group">-->
<!--            <label class="control-label col-xs-12 col-sm-2">{:__('Room_id')}:</label>-->
<!--            <div class="col-xs-12 col-sm-8">-->
<!--                <select name="row[room_id]" id="c-room_id" data-rule="required"-->
<!--                        class="form-control roomlist" data-url="room/ajaxgetroom"-->
<!--                        data-query-name="store_id">-->
<!--                    <option value="{$row.room_id|htmlentities}" selected=""></option>-->
<!--                </select>-->
<!--            </div>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Total_num')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-total_num" data-rule="required" class="form-control" name="row[total_num]" type="number" value="{$row.total_num|htmlentities}">-->
<!--            <span class="mf_backend_field_note">0表示不限制发放数量</span>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Receive_num')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-receive_num" data-rule="required" class="form-control" name="row[receive_num]" type="number" value="{$row.receive_num|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Num_per_person')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-num_per_person" data-rule="required" class="form-control" name="row[num_per_person]" type="number" value="{$row.num_per_person|htmlentities}">-->
<!--            <span class="mf_backend_field_note">0表示不限制每人可领取的数量</span>-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>

<style>
    .mf_backend_field_note {
        display: block;
        margin-top: 0.5rem;
        color: #838fa1;
        font-size: 1.2rem;
    }
</style>
